package com.c2rusthub.service.mapper;

import com.c2rusthub.service.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();

    /**
     * 根据邮箱查询用户信息
     *
     * @param account 账号
     * @return 用户对象
     */
    User selectByAccount(String account);
}
